package com.car.domain;

import java.io.Serializable;
import java.util.List;

public class Store implements Serializable {
    /**
     * 商店名称
     */
    private String name;
    /**
     * 汽车集合
     */
    private List<Car> list;

    public Store() {
    }

    public Store(String name, List<Car> list) {
        this.name = name;
        this.list = list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Car> getList() {
        return list;
    }

    public void setList(List<Car> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Store{" +
                "name='" + name + '\'' +
                ", list=" + list +
                '}';
    }
}
